﻿using System;

namespace Volo.Abp.BackgroundJobs.DemoApp.HangFire
{
    class Program
    {
        static void Main(string[] args)
        {
            using (var application = AbpApplicationFactory.Create<DemoAppHangfireModule>(options =>
            {
                options.UseAutofac();
            }))
            {
                application.Initialize();

                Console.WriteLine("Started: " + typeof(Program).Namespace);
                Console.WriteLine("Press ENTER to stop the application..!");
                Console.ReadLine();

                application.Shutdown();
            }
        }
    }
}
